package com.yenroc.invoice.pojo.xml;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.xml.bind.annotation.*;
import java.util.List;

@XmlRootElement(name = "SpecificInformation")
@XmlAccessorType(XmlAccessType.FIELD)
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class SpecificInformationXmlDTO {
    /**
     * 货物运输发票
     */
    @XmlElement(name = "FreightService")
    private List<FreightServiceXmlDTO> freightService;

    /**
     * 不动产租赁
     */
    @XmlElementRef(name = "RealEstateLease")
    private List<RealEstateLeaseXmlDTO> realEstateLease;

    /**
     * 红字发票
     */
    @XmlElementRef(name = "RedEInvoice")
    private RedEInvoiceXmlDTO redEInvoice;

}
